//package com.zzyl.controller.customer;
//
//import com.zzyl.base.PageResponse;
//import com.zzyl.base.ResponseResult;
//import com.zzyl.dto.AlertRuleDto;
//import com.zzyl.service.AlertRuleService;
//import com.zzyl.service.RalertRuleService;
//import com.zzyl.vo.AlertRuleVo;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
//
////@RestController
////@Slf4j
////@RequestMapping("/alert-rule")
//public class ConstomeRalertRuleController {
//
//    @Autowired
//    private AlertRuleService alertRuleService;
//
//    @ApiOperation("新增报警规则")
//    @PostMapping("/create")
//    public ResponseResult create(@RequestBody AlertRuleDto alertRuleDto){
//        alertRuleService.create(alertRuleDto);
//        return ResponseResult.success();
//    }
//    @ApiOperation("分页获取告警规则列表")
//    @GetMapping("/get-page")
//    public ResponseResult<PageResponse<AlertRuleVo>> getPage(
//            @ApiParam(value = "功能名称，精确查询")
//            @RequestParam(required = false) String functionName,
//            @ApiParam(value = "规则名称，精确查询")
//            @RequestParam(required = false) String alertRuleName,
//            @ApiParam(value = "产品ID")
//            @RequestParam(required = false) String productKey,
//            @ApiParam(value = "页码（默认为1）")
//            @RequestParam(required = false, defaultValue = "1") Integer pageNum,
//            @ApiParam(value = "每页大小（默认为10）")
//            @RequestParam(required = false, defaultValue = "10") Integer pageSize
//      ){
//        PageResponse<AlertRuleVo> pageResponse=alertRuleService.getAlertRulePage(
//          pageNum, pageSize, alertRuleName,productKey, functionName);
//           return ResponseResult.success(pageResponse);
//    }
//
//
//
//
//
//
//
////    @GetMapping("/get-page")
////    public ResponseResult  getPage(){
////
////    }
//
//
//}
